package com.job.ali;

import java.util.Scanner;

/**
 * @ClassName: test.Ali2
 * @Description:
 * @Author: 12071
 * @Date: 2022/4/15 19:51
 */

/**
 * 4 5
 * rpprr
 * prrpp
 * p.r..
 * p..r.
 */
public class Ali2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        sc.nextLine();
        char[][] chars = new char[n][m];
        for (int i = 0; i < n; i++) {
            chars[i] = sc.nextLine().toCharArray();
        }
        int[] stepx = {-1, 1, 0, 0, -1, 1, -1, 1};
        int[] stepy = {0, 0, -1, 1, -1, 1, 1, -1};
        for (int x = 0; x < n; x++) {
            for (int y = 0; y < m; y++) {
                if(chars[x][y] == '.'){
                    continue;
                }
                for (int i = 0; i < 4; i++) {
                    int xt = x;
                    int yt = y;
                    int cnt = 0;
                    while (xt >= 0 && xt < n && yt >= 0 && yt < m) {
                        if (chars[xt][yt] == chars[x][y]) {
                            cnt++;
                        } else {
                            break;
                        }
                        xt += stepx[i * 2];
                        yt += stepy[i * 2];
                    }
                    xt = x;
                    yt = y;
                    while (xt >= 0 && xt < n && yt >= 0 && yt < m) {

                        if (chars[xt][yt] == chars[x][y]) {
                            cnt++;
                        } else {
                            break;
                        }
                        xt += stepx[i * 2 + 1];
                        yt += stepy[i * 2 + 1];
                    }
                    if(cnt - 1 >= 4){
                        if(chars[x][y] == 'r'){
                            System.out.println("kou");
                        }else{
                            System.out.println("yukari");
                        }
                        return;
                    }
                }
            }
        }
        System.out.println("to be continued");
    }
}
